package com.drools.rule.req;

import com.alibaba.fastjson.JSONObject;

import java.util.List;

public class Order {
    private int orderId;
    private Double amount;
    private int actionValue;
    private List<UserBehavior> userBehaviorList;

    public int getOrderId() {
        return orderId;
    }

    public void setOrderId(int orderId) {
        this.orderId = orderId;
    }

    public Double getAmount() {
        return amount;
    }

    public void setAmount(Double amount) {
        this.amount = amount;
    }

    public List<UserBehavior> getUserBehaviorList() {
        return userBehaviorList;
    }

    public void setUserBehaviorList(List<UserBehavior> userBehaviorList) {
        this.userBehaviorList = userBehaviorList;
    }

    public int getActionValue() {
        return actionValue;
    }

    public void setActionValue(int actionValue) {
        this.actionValue = actionValue;
    }

    public void execute(Order order){
        System.out.println(JSONObject.toJSONString(order));
    }
}
